package com.k7.mobile.platform.dao.impl;

import java.util.List;

import com.k7.mobile.platform.dao.IRecommendxDAO;
import com.k7.mobile.platform.dataobject.RecommendxDO;


public class RecommendxDAOImpl extends BaseDAOImpl implements IRecommendxDAO{

	@Override
	public Long add(RecommendxDO recommendxDO) {
		
		Object id = getSqlMapClientTemplate().insert("RECOMMENDX-ADD", recommendxDO);
		return (Long) id;
	}
	
	@Override
	public void delete(RecommendxDO recommendxDO) {
		
		this.getSqlMapClientTemplate().delete("RECOMMENDX-DEL", recommendxDO);
		
	}

	@Override
	public void update(RecommendxDO recommendxDO) {
		
		this.getSqlMapClientTemplate().update("RECOMMENDX-UPDATE", recommendxDO);
		
	}

	@Override
	public List<RecommendxDO> findList(RecommendxDO recommendxDO) {
		
		return this.executeQueryForList("FIND-RECOMMENDX-LIST","FIND-RECOMMENDX-LIST-COUNT",  recommendxDO);
	}

	@Override
	public RecommendxDO getRecommendx(RecommendxDO recommendxDO) {
		return (RecommendxDO) this.getSqlMapClientTemplate().queryForObject("GET-RECOMMENDX", recommendxDO);
	}


}
